import { LOGIN, LOGOUT } from '@/store/actionTypes'
const initValue = ''
export default function login (state = initValue, { type, payload }) {
  console.log(type, payload, 'login')
  switch (type) {
    case LOGIN:
      return payload
    case LOGOUT:
      return ''
    default:
      return state
  }
}
